package core.syntatic;

import static org.junit.Assert.fail;

import java.io.FileNotFoundException;
import java.io.FileReader;

import org.junit.Test;

import core.error.ErrorHandler;
import core.lexical.LexicalAnalyser;



public class SyntaticAnalyserTest {
	
	@Test
	public void testNextTokenExample1() {
		try {
			SyntaticAnalyser parser = new SyntaticAnalyser(	new LexicalAnalyser( new FileReader( "examples/example1.ford" ), new ErrorHandler() ) );
			parser.analyseIt();
		} catch (FileNotFoundException e1) {
			fail( "Should never launch" );
		}
	}


}
